<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Dingo.models.TwoRayGroundReflection.TwoRayGround</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Dingo-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/dingo-wsn/">Dingo</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Dingo-module.html">Package&nbsp;Dingo</a> ::
        <a href="Dingo.models-module.html">Package&nbsp;models</a> ::
        <a href="Dingo.models.TwoRayGroundReflection-module.html">Package&nbsp;TwoRayGroundReflection</a> ::
        Class&nbsp;TwoRayGround
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Dingo.models.TwoRayGroundReflection.TwoRayGround-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class TwoRayGround</h1><br /><br />
<center>
<center>  <map id="uml_class_diagram_for_dingo_mo_13" name="uml_class_diagram_for_dingo_mo_13">
<area shape="rect" href="Dingo.modelManager.Model&#45;class.html#name" title="name of this model." alt="" coords="240,28,365,47"/>
<area shape="rect" href="Dingo.modelManager.Model&#45;class.html#modeltypes" title="Dingo.modelManager.Model.modeltypes" alt="" coords="240,47,365,66"/>
<area shape="rect" href="Dingo.modelManager.Model&#45;class.html#modeltype" title="what this model is modelling!" alt="" coords="240,66,365,84"/>
<area shape="rect" href="Dingo.modelManager.Model&#45;class.html" title="Superclass for Dingo models." alt="" coords="239,11,367,94"/>
<area shape="rect" href="Dingo.models.RadioPropagationModel.RadioPropagationModel&#45;class.html" title="Superclass for all radio propagation models." alt="" coords="161,123,444,155"/>
<area shape="rect" href="Dingo.models.TwoRayGroundReflection.TwoRayGround&#45;class.html#getRSSI" title="Return predicted RSSI for packet travelling a given distance." alt="" coords="17,210,588,228"/>
<area shape="rect" href="Dingo.models.TwoRayGroundReflection.TwoRayGround&#45;class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,228,588,247"/>
<area shape="rect" href="Dingo.models.TwoRayGroundReflection.TwoRayGround&#45;class.html" title="This model considers dirct path and ground reflection." alt="" coords="16,184,589,248"/>
</map>
  <img src="uml_class_diagram_for_dingo_mo_13.gif" alt='' usemap="#uml_class_diagram_for_dingo_mo_13" ismap="ismap" class="graph-without-title" />
</center></center>
<hr />
This model considers dirct path and ground reflection. Gives more 
  accurate prediction at long distances.<br /><br />

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Dingo.models.TwoRayGroundReflection.TwoRayGround-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">power_tx</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">height_tx</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">height_rx</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">gain_tx</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">gain_rx</span>=<span class="summary-sig-default">1.0</span>,
        <span class="summary-sig-arg">sysloss</span>=<span class="summary-sig-default">1.0</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for 
      signature</td>
          <td align="right" valign="top">
            
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">float</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Dingo.models.TwoRayGroundReflection.TwoRayGround-class.html#getRSSI" class="summary-sig-name">getRSSI</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">distance</span>)</span><br />
      Return predicted RSSI for packet travelling a given 
      <code>distance</code>.</td>
          <td align="right" valign="top">
            
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="Dingo.modelManager.Model-class.html">modelManager.Model</a></code></b>:
      <code><a href="Dingo.modelManager.Model-class.html#modeltypes">modeltypes</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE VARIABLES ==================== -->
<a name="section-InstanceVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="Dingo.modelManager.Model-class.html">modelManager.Model</a></code></b>:
      <code><a href="Dingo.modelManager.Model-class.html#modeltype">modeltype</a></code>,
      <code><a href="Dingo.modelManager.Model-class.html#name">name</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">power_tx</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">height_tx</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">height_rx</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">gain_tx</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">gain_rx</span>=<span class="sig-default">1.0</span>,
        <span class="sig-arg">sysloss</span>=<span class="sig-default">1.0</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    >&nbsp;
    </td>
  </table>
  
  x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>height_tx</code></strong> (float) - height of antenna on transmitter</li>
        <li><strong class="pname"><code>height_rx</code></strong> (float) - height of antenna on receiver</li>
        <li><strong class="pname"><code>power_tx</code></strong> (float) - transmitted signal power</li>
        <li><strong class="pname"><code>gain_tx</code></strong> (float) - antenna gain on transmitter</li>
        <li><strong class="pname"><code>gain_rx</code></strong> (float) - antenna gain on receiver</li>
        <li><strong class="pname"><code>sysloss</code></strong> (float) - system loss</li>
    </ul></dd>
    <dt>Overrides:
      <a href="Dingo.models.RadioPropagationModel.RadioPropagationModel-class.html#__init__">RadioPropagationModel.RadioPropagationModel.__init__</a>
    </dt>
  </dl>
<div class="fields">      <p><strong>Precondition:</strong>
        sysloss &gt;= 1.0
      </p>
      <p><strong>Postcondition:</strong>
        self.sysloss &gt;= 1.0
      </p>
</div></td></tr></table>
</div>
<a name="getRSSI"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getRSSI</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">distance</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    >&nbsp;
    </td>
  </table>
  
  Return predicted RSSI for packet travelling a given 
  <code>distance</code>.
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>distance</code></strong> (float) - distance packet has travelled</li>
    </ul></dd>
    <dt>Returns: float</dt>
    <dt>Overrides:
      <a href="Dingo.models.RadioPropagationModel.RadioPropagationModel-class.html#getRSSI">RadioPropagationModel.RadioPropagationModel.getRSSI</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Dingo-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/dingo-wsn/">Dingo</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0beta1 on Tue Jun  3 00:42:56 2008</a>
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
